package com.ganbo.thread.producer_consumer.single;

public class RunApp {

    public static void main(String[] args) {

        Object lock = new Object();
        Producer producer = new Producer(lock);
        Producer producer2 = new Producer(lock);
        Consumer consumer = new Consumer(lock);
        Consumer consumer2 = new Consumer(lock);

        producer.start();
        consumer.start();

        producer2.start();
        consumer2.start();

    }
}
